package com.xy.baselibrary.base

/**
 * @ClassName MvvmNetworkObserver
 * @Author xy
 * @Date 2021-8-24 0024 21:43
 * @Description
 */
abstract class MvvmNetworkObserver<T> {
    //T 代表缓存的实体类
    abstract fun onSuccess(t:T, isFromCache:Boolean)

    abstract fun onFailure(e:Throwable)
}